from celery import Celery
backend = 'redis://:zzt123@111.229.249.204/1'
broker = 'redis://:zzt123@111.229.249.204/2'

cel = Celery('celery_demo',
             broker=broker,
             backend= backend,
             # 包含以下两个任务文件，去相应的py文件中找任务，对多个任务做分类
             include=['celery_tasks.task01',
                      'celery_tasks.task02'
                      ]
             )
# 时区
cel.conf.timezone = 'Asia/Shanghai'
# 是否使用UTC
cel.conf.enable_utc = False
